import { ref,onMounted } from 'vue'
import { getBannerService } from '@/api/Home'
export const useBanner = () => {
    const BannerList = ref([])
    const getBanner = async () => {
    const res = await getBannerService({
    distributionSite: "2"
  })
    BannerList.value =  res.data.result
}
    onMounted(()=>{ getBanner()})
    return {
        BannerList
    }
}